package latch;
import java.util.concurrent.CountDownLatch;
public class CompetentThread extends Thread{



	private CountDownLatch mDownLatch;

	public CompetentThread(CountDownLatch downLatch){
		mDownLatch = downLatch;
	}

	public void run() {
		System.out.println("manager is waiting all workers finish their jobs.");
		try {
			mDownLatch.await();
		} catch (InterruptedException e) {
		}
		System.out.println("manager start to check! ");
	}

}

